<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>信息采纳类型管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath+Util.SKIN%>/css/right.css">
	<script src="<%=basePath%>/js/checkbox1.js" type="text/javascript"></script>
	<style>
		.menuitem {BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; POSITION: absolute; VISIBILITY: hidden;width:180px;}
	</style>
	
  </head>
  
  <body>
  	<div class="body-box">
		<div class="map">
			<div class="map_con">
				当前位置： 协同办公 &gt; 信息报送 &gt; 信息采纳类型管理
			</div>
		</div>
			<div id="msgDiv" class="menuitem"> 
				<table width="250" bgcolor="#FFFFFF">
					<tr> 
						<td class="p9">
							<form action="<%=basePath %>/oa/acceptManage_add.action" method="post">
								类型名称：<input type="text" name="type.typeName" value="" id="bit1"/><span class="note4">*</span>		
								<input type="submit" value="提交" class="link_input" id="btnSubmit1"/>&nbsp;<input type="button" onclick="javascript:Hide('msgDiv');" value="关闭" class="link_input"/>
							</form>			
						</td>
					</tr>
				</table>
			</div>
		<div id="container">			
		    <table border="0" cellpadding="0" cellspacing="0" class="mytable">
		    	 <tr class="fixedHeaderTr">
		    		<th width="10%">序列</th>
		    		<th width="15%">类型名称</th>	    		
		    		<th width="15%">操作</th>	    		
		    	</tr>
		    	<s:if test="%{acceptList.size>0}">
		    		<s:iterator value="acceptList" id="mt" status="x">
				    	<tr>
				    		<td align="center">${x.index+1+(page.num-1)*page.size}</td>			    		
				    		<td align="center">${mt.typeName }
								<div id="mt${x.index+1 }" class="menuitem"> 
							      <table width="250" bgcolor="#FFFFFF">
								   <tr> 
									<td class="p9">
										<form action="<%=basePath %>/oa/acceptManage_edit.action" method="post">
										    <input type="hidden" name="id" value="${mt.id }"/>
											类型名称：<input type="text" name="type.typeName" value="${mt.typeName }" id="bit2"/><span class="note4">*</span>		
										    <input type="submit" value="提交" class="link_input" id="btnSubmit1"/>&nbsp;<input type="button" onclick="javascript:Hide('mt${x.index+1 }');" value="关闭" class="link_input"/>
										</form>			
									</td>
								   </tr>
							     </table>
						        </div>
				    		</td>
				    		<td align="center"><a href="javascript:Show('mt${x.index+1 }');">修改</a></td>				    		
				    	</tr>
		    		</s:iterator>
			    </s:if>
			    <s:else>
			    	<tr><td colspan="4">没有数据</td></tr>
			    </s:else>
			    <tr>
			    	<td colspan="3">
			    		<input type="button" class="link_input" value="添加类型" onclick="javascript:Show('msgDiv');"/>
			    	</td>
			    </tr>
		    </table>		    
		</div>
		<div class="right_bottom">
			<div style="width:11px;float:left"><img src="<%=basePath%>/images/right_bottom.gif"/></div>
			<div style="width:16px;float:right"><img src="<%=basePath%>/images/right_rbottom.gif"/></div>
		</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
	   <input type="hidden" name="tip" id="tip" value="${tip}">
	   <script type="text/javascript">
	        alert(document.getElementById("tip").value);
	      </script>
	</s:if>
</html>
